

package com.api.oa.services;

import com.api.oa.exception.BadRequestException;
import com.api.oa.model.entity.YQMedCare;
import com.api.oa.model.vo.YQMedCareVO;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface YQMedCareService {


    Integer add(YQMedCare entity) throws Exception;


    void remove(String id);


    Integer update(YQMedCare org);


    PageInfo<YQMedCare> list(Long pid,Integer pageIndex,Integer pageSize);


    PageInfo<YQMedCareVO> page(String idCard, String insCode, String role, Integer pageIndex, Integer pageSize);


    YQMedCare one(Long id);



    void addBatch(List<YQMedCare> entities) throws BadRequestException;



    List<YQMedCareVO> queryMedByInsCode(String insCodeUser);


    /**
     * 导出
     * @param pageIndex
     * @param pageSize
     * @param res
     */

    void export(String idCard, String insCode, String role, Integer pageIndex, Integer pageSize, HttpServletResponse res) throws IOException;
}
